package edu.scau.pos.domain;

import edu.scau.core.Enum.SaleStatus;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@Data
public class Sale implements Serializable {
    private static final long serialVersionUID = 1L;

    @Schema(description = "销售ID", example = "sale_12345", required = true)
    private String saleId;

    @Schema(description = "销售状态", implementation = SaleStatus.class, type = "int")
    private int status;

    @Schema(description = "挂单订单", implementation = Orders.class)
    private Orders pendingOrder;

    @Schema(description = "成功订单", implementation = Orders.class)
    private Orders successOrder;

    @Schema(description = "开始时间", example = "2024-04-01T10:00:00", type = "string", format = "date-time")
    private Date beginTime;

    @Schema(description = "结束时间", example = "2024-04-01T10:30:00", type = "string", format = "date-time")
    private Date finishTime;
}
